<div id="user-index">

    <div class="title">
        <a class="add" href="__APP__/User/add">添加用户</a>
        <eq name="isshow" value="yes">
            <a class="delete" href="javascript:;">删除</a><a class="select" href="javascript:;">全选</a>
        </eq>
    </div>

        <eq name="nobody" value="no">
                <div class="content">
                    <div id="nodata">暂无用户</div>
                </div>
                <div class="footer">

                </div>
            <else/>
                <div class="content">

                    <div class="search">
                        <form action="__APP__/User/index" method="post" class="select">
                            关键字 <input type="text" name="key" /> 按
                            <select name="search">
                                <option value="1">ID</option>
                                <option value="2">用户名</option>
                                <option value="3">电子邮件</option>
                            </select>
                            <input type="submit" value="搜索" />
                        </form>
                    </div>
                    <form action="__APP__/User/del" method="post" name="delete" class="delete">
                        <table>
                            <tr>
                                <th>ID</th><th>用户名</th><th>邮箱</th><th>注册时间</th><th>注册IP</th><th>用户组</th><th>操作</th>
                            </tr>
                            <volist name="list" id="vo">
                                <tr>
                                    <td><{$vo['id']}></td>
                                    <td><a href="__APP__/User/edit/id/<{$vo['id']}>"><{$vo['username']}></a></td>
                                    <td><{$vo['email']}></td>
                                    <td><{$vo['reg_date']}></td>
                                    <td><{$vo['reg_ip']}></td>
                                    <td><a href="__APP__/User/index/rid/<{$vo['role_id']}>"><{$vo['rolename']}></a></td>
                                    <td><input type="checkbox" name="del[]" value="<{$vo['id']}>" /></td>
                                </tr>
                            </volist>
                        </table>
                    </form>

                </div>
            <div class="footer">
                <{$show|default="暂无数据"}>
            </div>
        </eq>
</div>
<script src="../Public/js/user_index.js"></script>
